class Shared::District < ActiveRecord::Base
  belongs_to :obj_province, :class_name => 'Shared::Province', :foreign_key => 'province'
  has_many :complaints, :class_name => 'RequestAndComplaint::Complaint', :foreign_key => 'district'
  has_many :cultural_institutions, :class_name => 'CulturalHeritage::CulturalInstitution', :foreign_key => 'district'
  default_scope where("deleted = 0")
end
